package com.nanhang.service.impl;


import com.nanhang.entity.User;
import com.nanhang.mapper.UserMapper;
import com.nanhang.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper;

	// 1. 查询所有学生
	@Override
	public List<User> findAll() {
		return userMapper.findAll();
	}
}
